from setuptools import setup, Extension
import pybind11

module = Extension(
    'eigen_solver',
    sources=['eigen_solver.cpp'],
    include_dirs=[pybind11.get_include(), 'C:\\Users\\18677\\eigen340\\eigen-3.4.0'],  # 替换为Eigen头文件路径
    language='c++',
    extra_compile_args=['--std=c++17', '--O3']  # 优化标志
)

setup(ext_modules=[module])

# 安装vs2022(选择C++桌面开发.python 开发)后, 运行 L:/FEACODE/DevEnv/PortablePython310/App/Python/python.exe  setup.py build_ext --inplace